package com.ideaaedi.zoo.diy.artifact.generator.properties;

import com.ideaaedi.zoo.diy.artifact.generator.properties.nested.DatabaseDoc;
import com.ideaaedi.zoo.diy.artifact.generator.properties.nested.JavaCurdCode;
import jakarta.validation.Valid;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.validation.annotation.Validated;

/**
 * sse相关配置
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img
 * src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 1.0.0
 */
@Data
@Validated
@ConfigurationProperties(prefix = "zoo.generator")
public class ZooGeneratorProperties {
    
    @Valid
    @NestedConfigurationProperty
    private DatabaseDoc databaseDoc = new DatabaseDoc();
    
    @Valid
    @NestedConfigurationProperty
    private JavaCurdCode javaCurdCode = new JavaCurdCode();
    
}
